package com.baizhi.controller;

import com.baizhi.entity.CmfzLog;
import com.baizhi.service.CmfzLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;
@Slf4j
@Controller
@RequestMapping("/cmfzlog")
public class CmfzLogController {
    @Autowired
    private CmfzLogService cmfzLogService;
    @RequestMapping("/showPage")
    public @ResponseBody Map showPage(Integer page, Integer limit,String option, String search){
        log.info(page.toString());
        Map map = cmfzLogService.selectPage(page, limit,option,search);
        return map;
    }
}
